$(function(){
$("#announceDialog").dialog({
		title:"关于国付宝协议修改与账户功能限制的通知",
		align:"center",
		width: 700,
		height: 400,
		autoOpen: false,
		modal: true,
		open: function() { $(".ui-dialog-titlebar-close").hide()},
		buttons:{
			查看协议 : function(){
				$.ajax({
					url : ctx+"/sec/logined.shtml",
					type : "post",
					async : true
				});
				window.open(ctx+"/protocol/RegProtocol.htm","_blank");
			},
			确定 : function(){
				$.ajax({
					url : ctx+"/sec/logined.shtml",
					type : "post",
					async : true
				});
				 $(this).dialog('close');
			}
			
			
		}
	});
	var isFirstLogin=$("#isFirstLogin").val();
	var login=$("#login").val();
	if(login != '0' && isFirstLogin != '0'){
		openAnnounceDialog();
	}
});


function openAnnounceDialog(){
	
	$("#announceDialog").dialog("open");
	
}